<?php
include("../db_connect.php");

$id = $_GET['id'];
$data = explode("," , $id);
$y= count($data);

	for($i=0; $i<=$y-1; $i++ ){
		$sql = "UPDATE tblpayment SET delivered= 'yes'  WHERE transaction_id = '".$data[$i]."' "; 
		mysql_query($sql);
	}
	
	if(mysql_affected_rows()){
		echo true;
	}
	else{
		echo $sql;
	}
	
?>